<?php
//Frontend index.php file
ini_set('include_path','../libs' . PATH_SEPARATOR . ini_get('include_path'));
require 'JsClasses.php';            # JsClasses Required
require 'JsClassesMemcache.php';    # JsClasses Memcache routines
require 'JsClassesFrontend.php';    # JsClasses Frontend Class (JsClassesMemcache Required)

$memcache_obj = memcache_connect('localhost', 11211);

$jsClasses = new JsClassesFrontend(array(
	'classesPath' => '../js',
        'memcacheConnection' => $memcache_obj
));

$classes= array();
$classes= explode ( "," ,$_GET[$jsClasses->getGetParamName()]);

$jsClasses->make($classes);
        
echo  $jsClasses->getJsFileName();
?>
